<?php

namespace app\mobileapp\controller;

use app\common\logic\OssLogic;
use easemob\EasemobIm;
use service\SmsService;
use \think\Db;

class Test extends Base
{
    public function test(){
			
			$class = new \ReflectionClass('easemob\EasemobIm');
			$properties = $class->getProperties(); 

			$property = $class->getProperty('_client_id'); // 获取User类的password属性ReflectionProperty
			// $methods = $class->getMethods();   // 获取User类的所有方法，返回ReflectionMethod数组
			// $method = $class->getMethod('getUsername');  // 获取User类的getUsername方法的ReflectionMethod
			// $constants = $class->getConstants();   // 获取所有常量，返回常量定义数组
			// $constant = $class->getConstant('ROLE');   // 获取ROLE常量
			// $namespace = $class->getNamespaceName();  // 获取类的命名空间
			// $comment_class = $class->getDocComment();  // 获取User类的注释文档，即定义在类之前的注释
			// $comment_method = $class->getMethod('getUsername')->getDocComment();  // 获取User类中getUsername方法的注释文档

			print_r($property->name);die;
    }
}
